<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta content="width=device-width,user-scalable=no"name="viewport">
<title>其他提现方式</title>
<link rel="stylesheet" type="text/css" href="{:C('WEB_URL')}Public/business/style/base.css" />
<link rel="stylesheet" type="text/css" href="{:C('WEB_URL')}Public/business/style/style.css" />
<link rel="stylesheet" type="text/css" href="{:C('WEB_URL')}Public/business/style/bootstrap.min.css" />
<script type="text/javascript" charset="UTF-8" src="{:C('WEB_URL')}Public/business/js/jquery-2.1.4.min.js"></script>
<script type="text/javascript" charset="UTF-8" src="{:C('WEB_URL')}Public/business/js/bootstrap.min.js"></script>
<script type="text/javascript" charset="UTF-8" src="{:C('WEB_URL')}Public/business/js/script.js"></script>
</head>
<body>
<div id="box">
 <div class="navbar navbar-default navbar-fixed-top">
  <header>
   <h1><a href="deposit.html"><span class="glyphicon glyphicon-menu-left"></span></a></h1>
   <p class="title">其他提现方式</p>
  </header>
 </div><!--navbar-fixed-top-->
 <div class="deposit">
  <form id='myForm' method="post">
   <div class="depoForm">
   	<label>支付宝账号</label>
   	<input type="tel" placeholder=""  name='num'/>
   </div><!--depoForm-->
   <div class="depoForm">
   	<label>收款人姓名</label>
   	<input type="text" placeholder=""  name='name'/>
   </div><!--depoForm-->
   <div class="depoMoney">
   	<label>提现金额(元)</label>
   	<input type="text" id="inp" name="money" placeholder="当前可提现{$list[enwithdraw]}元" />
   	<input type="hidden" name="inp1" id="inp1" value="{$list[enwithdraw]}" />
   </div><!--depoForm-->
  </form>
  <p>有疑问请查看<a href="rule.html">《提现规则》</a>。外籍人士、姓名有误的等疑问请店家“联系客服”在线提交反馈。</p>
  <h4 class="myThree" id='cun'><a  >提交</a></h4>
 </div><!--deposit-->
 <div class="navbar navbar-default navbar-fixed-bottom">
   <footer id="foot">
    <dl>
     <dt><a href="index.html"><img src="{:C('WEB_URL')}Public/business/images/home.png" /></a></dt>
     <dd><a href="index.html" class="current">首页</a></dd>
    </dl>
    <dl>
     <dt><a href="pullrefresh_sub.html"><img src="{:C('WEB_URL')}Public/business/images/deal_07.jpg" /></a></dt>
     <dd><a href="pullrefresh_sub.html">员工管理</a></dd>
    </dl>
    <dl>
     <dt><a href="manage.html"><img src="{:C('WEB_URL')}Public/business/images/deal_09.jpg" /></a></dt>
     <dd><a href="manage.html">会员管理</a></dd>
    </dl>
   </footer>
  </div><!--/navbar-->
</div><!--box-->
<script type="text/javascript">
//微信判断header是否显示
if(isWeiXin()){ 
//alert("====");
$(".title").hide();
} 
else{
//alert("+++++");
}	



$('#inp').blur(function(){
		var old=$("#inp").val();
		var old1=$("#inp1").val();
		var old2=old-old1;
		if(old<0){
			$("#inp").val($("#inp1").val());
		}
		if(isNaN(old)){
			$("#inp").val($("#inp1").val());
		}
		if(old2>0){
			$("#inp").val($("#inp1").val());
		}
		
			
		
})
	
	
	
	
	function check_form(form_id) {
				last_submit = $('#' + form_id).data('last_submit');
				current_submit = new Date().getTime();
				if (last_submit == undefined) {
					$('#' + form_id).data('last_submit', new Date().getTime());
				} else {
					if (current_submit - last_submit > 600) {
						$('#' + form_id).data('last_submit', new Date().getTime());
					} else {
						return false;
					}
				}
				if ( typeof (tinyMCE) != 'undefined') {
					tinyMCE.triggerSave(true);
				}

				var check_flag = true;
				$("#" + form_id + " :input").each(function(i) {
					if ($(this).attr("check")) {
						if (!validate($(this).val(), $(this).attr("check"))) {
							ui_error($(this).attr("msg"));
							$(this).focus();
							check_flag = false;
							return check_flag;
						}
					}
				});
				return check_flag;
			}


			function sendForm(formId, post_url, return_url) {
				if (check_form(formId)) {
					//绑定beforeunload事件
					$(window).unbind('beforeunload', null);
					if ($("#ajax").val() == 1) {
						var vars = $("#" + formId).serialize();
						$.ajax({
							type : "POST",
							url : post_url,
							data : vars,
							dataType : "json",
							success : function(data) {
								if (data.status) {
									ui_alert(data.info, function() {
										if (return_url) {
											location.href = return_url;
										}
									});
								} else {
									ui_error(data.info);
								}
							}
						});
					} else {
						$("#" + formId).attr("action", post_url);
						if (return_url) {
							set_cookie('return_url', return_url);
						}
						$("#" + formId).submit();
					}
				}
			}
			$('#cun').click(function(){
			
				
				// alert($('#sex p').children('span').attr('style','hover').html());  
				sendForm("myForm","{:U('Business/toDeposit2')}");
			})


			//最下面点击效果
			$('#foot dl').on("touchstart",function(){
			  // alert(1);
			  $('#foot dl').css("background-color","#fff")
			  $(this).css("background-color","#ddd")
			})
			$('#foot dl').on("touchend",function(){
			  // alert(1);
			  $('#foot dl').css("background-color","#fff")

			})
</script>
</body>
</html>
